<!--
+----------------------------------------------------------------------
| 友得云客  - 开启房产营销新纪元
+----------------------------------------------------------------------
| Copyright (c) 2019~2023 优得（西安）信息科技有限公司版权所有
+----------------------------------------------------------------------
| Licensed 友得云客不是自由软件 未经允许不可移除相关版权
+----------------------------------------------------------------------
| Author: www.youdeyunke.com
+----------------------------------------------------------------------
-->
<template>
    <div>
    <el-result :icon="icon" :title="title" :subTitle="job.message">
      <!-- template slot="extra">
        <el-button type="primary" size="medium">关闭</el-button>
      </template -->
    </el-result>
    </div>
</template>

<script>
export default {
    name: 'running',
    data() {
        return {
            importSuccess: false,
            importResText: '',
            showProxySet: false,
        }
    },
    computed: {
        icon: function () {
            switch(this.job.status){
                case "done":
                    return 'success';
                case "error":
                    return 'error';
            }
        },
        title: function () {
            switch(this.job.status){
                case "done":
                    return '导入完成';
                case "error":
                    return '导入失败';
            }
        },
        
    },
    components: { },
    props: {
        job: {
            type: Object,
            default: null
        }
    },
    watch: {
        job: {
            handler(val) {
                if (!val) {
                    return false;
                }
            },
            immediate: true
        }
    },
    methods: {
        proxysetsuccess() {
            this.showProxySet = false;
            this.$emit('proxysetsuccess')
        }
    },
    mounted: function () {

    }

}
</script>

<style scoped>
.box {
    text-align: center;
}

.tip-title {
    font-size: 18px;
    color: #333333;
}

.tips {
    font-size: 12px;
    color: #666666;
}

.success {
    font-size: 200px;
    color: #029b00;
    margin: 60px auto;
}

.fail {
    font-size: 200px;
    color: #f56c6c;
    margin: 60px auto;
}

.proxy-btn {
    cursor: pointer;
    color: #409eff;
}
</style>